package sk.ogame.brain.thing;

import sk.ogame.realm.exception.BaseException;
import sk.ogame.realm.exception.ResourceNotEnoughException;
import sk.ogame.realm.service.SailService;

import java.util.Collections;
import java.util.Set;

public class CarryThing extends Thing {
    @Override
    public Set<Class<? extends BaseException>> couldSolve() {
        return Collections.singleton(ResourceNotEnoughException.class);
    }

    @Override
    public Class<? extends ThingService> getDealBeanType() {
        return SailService.class;
    }

    @Override
    public String toString() {
        return "carry to [" + targetId + "] m:" + metal + " c:" + crystal + " d:" + deuterium + " .";
    }

    private int targetId;
    private int metal;
    private int crystal;
    private int deuterium;

    public int getTargetId() {
        return targetId;
    }

    public void setTargetId(int targetId) {
        this.targetId = targetId;
    }

    public int getMetal() {
        return metal;
    }

    public void setMetal(int metal) {
        this.metal = metal;
    }

    public int getCrystal() {
        return crystal;
    }

    public void setCrystal(int crystal) {
        this.crystal = crystal;
    }

    public int getDeuterium() {
        return deuterium;
    }

    public void setDeuterium(int deuterium) {
        this.deuterium = deuterium;
    }
}
